﻿using Microsoft.Extensions.DependencyInjection;
using KwaiXiaoDian.IDao;
using KwaiXiaoDian.Dao;

namespace KwaiXiaoDian.Dao
{
    public static class KwaiXiaoDianDaoExtension
    {
        public static IServiceCollection AddDaos(this IServiceCollection services)
        {
            //注入dao
            services.AddScoped<ICookieDao, CookieDao>();
            services.AddScoped<IUserDao, UserDao>();
            services.AddScoped<IGroupLeaderDao, GroupLeaderDao>();
            services.AddScoped<IProductDao, ProductDao>();
            services.AddScoped<IProductExpressDao, ProductExpressDao>();
            services.AddScoped<IProductShopDao, ProductShopDao>();
            services.AddScoped<IProductRankDao, ProductRankDao>();
            services.AddScoped<IChannelDao, ChannelDao>();
            services.AddScoped<IProductPromoteDao, ProductPromoteDao>();

            return services;
        }
    }
}
